package br.com.connection;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Connection {
	
	
		
		public static EntityManager criarConexao(){
			
					EntityManagerFactory factory =
					Persistence.createEntityManagerFactory("sgli");
				    return factory.createEntityManager();

			
		}

}
